package com.jewaton.auth.commons.operationlog.service;

import com.jewaton.auth.commons.entity.Account;
import com.jewaton.auth.commons.operationlog.entity.Operatelog;
import com.jewaton.auth.commons.operationlog.entity.OperatelogCriteria;
import com.jewaton.auth.commons.util.PagedQueryResult;
import com.jewaton.auth.commons.util.Pager;

import java.io.Serializable;
import java.util.Map;

public interface OperatelogService {
	/**
	 * 操作日志记录
	 */
	public void saveLog(Operatelog operateLog);

	Operatelog findOperatelogById(Serializable id);

	Pager findOperatelogAll(Integer start, Integer end);
	
	PagedQueryResult findOperatelogPage(Integer pageNo, Integer pageSize, OperatelogCriteria criteria);
	
	Pager finOperaterLogPager(Map param,Integer start, Integer end);

    int delLogs(String fns, String startTime, String endTime, Account account);
}
